package day1108.factory.simple;

/**
 * @author Mr.ma
 * @since 2022/11/8 20:14
 **/
public class ThinkPadFactory {
    private ThinkPadFactory(){}
    public static ThinkPad getThinkPad(String type){
        if ("T460".equals(type)){
            return new ThinkPadT460();
        } else if ("S670".equals(type)){
            return new ThinkPadS670();
        }
        return null;
    }
}

